package com.fable.web.controller;

import com.fable.biz.operate.CustomerTypeService;
import com.fable.common.config.RequireLogin;
import com.fable.web.controller.base.BaseController;
import com.fable.web.page.P;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 首页
 */
@Controller
@RequireLogin
public class CenterController {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private CustomerTypeService customerTypeService;

    @RequestMapping("/center.htm")
    public String center(ModelMap model, String url) {
        model.put("url", url);
        return P.Common.center;
    }


    @RequestMapping("/")
    public String xiegang(ModelMap model, String url) {
        model.put("url", url);
        return P.Common.center;
    }

    @RequestMapping("/index.htm")
    public String index(ModelMap model, String url) {
        model.put("url", url);
        return P.Common.center;
    }

    @RequestMapping("/welcome.htm")
    public String welcome(ModelMap model, String url) {
        model.put("url", url);
        return P.Common.welcome;
    }

    /**
     * 公海客户列表
     *
     * @return
     */
    @RequestMapping("/pubCustomerList")
    public String pubCustomerList(ModelMap modelMap) {
        return P.Common.pubCustomerList;
    }


    /**
     * 私海客户列表
     *
     * @return
     */
    @RequestMapping("/priCustomerList")
    public String priCustomerList(ModelMap modelMap) {
        return P.Common.pubCustomerList;
    }

    /**
     * 客户来源列表
     *
     * @return
     */
    @RequestMapping("/CustomerList")
    public String customerSourceList(ModelMap modelMap) {
        return P.Common.customerSourceList;
    }
}

